<template>
  <div class="integral_card">
    <ul class="integral_box">
      <li @click="$router.push('/stored')">
        <img src="../../../assets/img/my/gradient_overlay.png" alt="">
        <span>
          <div class="number">{{userinfo.pingtaibi}}</div>
          <div>我的代币</div>
        </span>
      </li>
      <li @click="$router.push('/userinfo/pointsmall')">
        <img src="../../../assets/img/my/ic_integral.png" alt="">
        <span>
          <div class="number">{{userinfo.integral}}</div>
          <div>我的积分</div>
        </span>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  props: {
    userinfo: {
      type: Object,
      default() {
        return {}
      }
    },
  },
}
</script>

<style lang="less" scoped>
.integral_card {
  width: 9.146667rem;
  height: 1.706667rem;
  margin-top: .266667rem;
  padding: 0 .426667rem;
  font-size: .346667rem;
  color: #666;
  .integral_box {
    width: 9.146667rem;
    height: 1.706667rem;
    background: #fff;   
    border-radius: .266667rem;
    display: flex;
    li {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      img {
        margin-right: .266667rem;
        width: .653333rem;
        height: .653333rem;
      }
      .number {
        font-size: .666667rem;
        font-weight: bold;
        color: #FF6600;
      }
    }
  }
}
</style>